<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


<link href="skin/modal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/jqModal.js"></script>
<script type="text/javascript" src="{$M[url]}images/js/space.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container"> 
    <div class="main"> 
    	
        {template 'header.html','space'} 
        
        {php //dump($data)}
        {loop $data $r}
        
        	<p>
                <a href="{url($r[url])}" target="_blank">{$r['title']}</a> {date('Y-m-d',$r[updatetime])}
                <br/>{$r[description]}
            </p>
        {/loop}
        
        <div class="pagination">{$pages}</div>
    </div>
    
    
    <div class="aside">
        {if $userid == $_userid}
        	<div class="mod">
            	<div class="head">投稿</div>
                <div class="body">
                	<a href="{url("?module=content&action=contribute")}" class="button">投稿</a>
                </div>
            </div>
        {/if}
        <!--{php //template 'left.html','space'}-->
            
        
    </div>
    <br class="clear"/> 
    
</div>


{template 'footer.html'}